helpers
Class DeviceUserResultsHelper
java.lang.Object
helpers.DeviceUserResultsHelper
public class DeviceUserResultsHelper
- extends java.lang.Object
Helper class to a extract data from the DeviceUserResults object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
response
Response response
DeviceUserResultsHelper
public DeviceUserResultsHelper(Response response)
- Initialize with the response to be parsed
- Parameters:
response
-
deviceExists
public boolean deviceExists()
- Returns:
- returns true if the queried device name exists, false if it does not exist
hasFailure
public boolean hasFailure()
- Returns:
- returns true if the response contains a failure object
hasUser
public boolean hasUser()
- Returns:
- returns true if the response contains a username indicating that the device has a a logged in user.
getUser
public java.lang.String getUser()
- Returns:
- returns the user ID of the user logged into the queried device
getError
public java.lang.String getError()
- Returns:
- returns error information if there is a failure